-- GENERATED SPELL FOR [Frigid Ghoul Attacker] --


function spell0_27685(pUnit, Event) --@Rot Armor,n/a--
pUnit:FullCastSpellOnTarget(50361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27685', 10000, 1)
end

function Sorts_27685(pUnit, Event)
local choix_sorts_27685 = math.random(0, 0)
if choix_sorts_27685 == 0 then
pUnit:RegisterEvent('spell0_27685', 1, 1)
end
end

function mob27685_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27685', math.random(1500, 3000), 1)
end

function mob27685_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27685_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27685_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27685, 1, 'mob27685_Action')
RegisterUnitEvent(27685, 2, 'mob27685_Leave')
RegisterUnitEvent(27685, 3, 'mob27685_Kill')
RegisterUnitEvent(27685, 4, 'mob27685_Die')
